/**
 * Created by Administrator on 2018/6/19 0019.
 */
function average(data)
{
    var avg=0;
    for(var i=0;i<data.length;i++)
    {
        avg+=data[i][1];
    }
    avg/=i;
    return avg;
}